package com.tools.common.thread;

import com.tools.common.object.CustomHandler;
import com.tools.common.object.Note;

import java.util.concurrent.Callable;

/**
 * 有返回值的线程任务类
 * 对于线程要执行的任务可以
 * 构建该对象
 * */
@Note("有返回值的线程任务类，对于线程要执行的任务可以构建该对象")
public abstract class OwnFuture<V> extends CustomHandler implements Callable<V> {

    public OwnFuture() {}

    public OwnFuture(Object param) {
        super(param);
    }

    public OwnFuture(Object... params) {
        super(params);
    }

    public OwnFuture(Iterable params) {
        super(params);
    }


    @Override
    public String toString() {
        return "OwnFuture-Parameters: " + super.toString();
    }
}
